﻿using System.Collections.Generic;
using System.Linq;
using HeritageAcademy.Models.ViewModels;

namespace HeritageAcademy.Models.Filters
{
    public class AllCoursesFilter : CourseFilter
    {
        public AllCoursesFilter(LibraryViewModel library) : base(library)
        {
        }

        public override string DisplayText
        {
            get { return "Все"; }
        }

        public override bool HasSubFilters
        {
            get { return false; }
        }

        public override void RefreshResults()
        {
            Results = new List<CourseViewModel>(Library.Courses.AsEnumerable());
        }
    }
}